<%--
  Created by IntelliJ IDEA.
  User: zwb
  Date: 2022/11/21
  Time: 下午6:21
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>Title</title>
    <!-- 新 Bootstrap 核心 CSS 文件 -->
    <link href="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">
    <!-- jQuery文件。务必在bootstrap.min.js 之前引入 -->
    <script src="https://cdn.staticfile.org/jquery/2.1.1/jquery.min.js"></script>
    <!-- 最新的 Bootstrap 核心 JavaScript 文件 -->
    <script src="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/js/bootstrap.min.js"></script>
</head>
<body>

<div class="container">
   <c:if test="${list.size()>0}">
       <table class="table table-bordered">
           <caption>查询信息</caption>
           <thead>
           <tr>
               <th>班次</th>
               <th>公司名称</th>
               <th>起飞地点</th>
               <th>到达地点</th>
               <th>起飞时间</th>
               <th>到达时间</th>
               <th>飞机型号</th>
           </tr>
           </thead>
           <tbody>
           <c:forEach items="${list}" var="airPlane">
               <tr>
                   <td>${airPlane.flightid}</td>
                   <td>${airPlane.company}</td>
                   <td>${airPlane.leaveairport}</td>
                   <td>${airPlane.arriveairport}</td>
                   <td>${airPlane.leavetime}</td>
                   <td>${airPlane.arrivetime}</td>
                   <td>${airPlane.airplane}</td>
               </tr>
           </c:forEach>
           </tbody>
       </table>
   </c:if>
    <c:if test="${list.size()==0}">
        <h2>没有可以查询的数据..</h2>
    </c:if>

</div>
</body>
</html>
